<%@ include file="/include/jstl.jsp" %>

<script type="text/javascript">

</script>
<form id="pagerForm" method="post" action="${pageContext.request.contextPath}/412210.stp" >
     <input type="hidden" name="numPerPage"      value="19" />
     <input type="hidden" name="pageNum"         value="${ETF.PAGENUM}" />
     <input type="hidden" name="CUST_ID"       value="${ETF.CUST_ID}" />
     <input type="hidden" name="CUST_LOGIN"       value="${ETF.CUST_LOGIN}" />
     <input type="hidden" name="CUST_NAME"       value="${ETF.CUST_NAME}" />
     <input type="hidden" name="CUST_CRED_TYPE"  value="${ETF.CUST_CRED_TYPE}" />     
     <input type="hidden" name="CUST_CRED_NO"    value="${ETF.CUST_CRED_NO}" />
     <input type="hidden" name="USR_STATUS"      value="${ETF.USR_STATUS}" />
     <input type="hidden" name="CUST_REG_DATE"   value="${ETF.CUST_REG_DATE}" />
  </form>
  <script type="text/javascript">
function checkText(cid,defaults){
    var ckid=document.getElementById(cid);
    var em=ckid.value;
    var Reg=/^[\u0391-\uFFE5\a-zA-Z0-9\u0391-\uFFE5]{1,16}$/;
    if(em.length==0){
      return;  
    }else if(!Reg.test(em)){
        alert("客户名称只能为中文或者数字和英文！");
        ckid.value=defaults;
        ckid.focus();
        return;  
    }else{
      return;
    }
    
}
</script>
  
<div class="pageHeader">
  <form onsubmit="return navTabSearch(this)"  action="${pageContext.request.contextPath}/412210.stp" method="post">
  
  <div class="searchBar">
    <table class="searchContent">
      <tr>
         <td>登录账号:</td>
         <td>
             <input type="text" size="23" maxlength="64" id="CUST_LOGIN"  name="CUST_LOGIN" value="${ETF.CUST_LOGIN}" onblur="checkNo()"/>
         </td>
         <td>用户名称:</td>
         <td>
             <input type="text" size="23" maxlength="64" id="CUST_NAME"  name="CUST_NAME" value="${ETF.CUST_NAME}"/>
         </td>
         <td>证件号码:</td>
         <td>
             <input type="text" size="23" maxlength="18" id="CUST_CRED_NO"  name="CUST_CRED_NO" value="${ETF.CUST_CRED_NO}"  />
         </td> 
      </tr>
     <tr> 
         <td>证件类型:</td>
         <td>
           <select name="CUST_CRED_TYPE" id="CUST_CRED_TYPE">
             <option value="-1" select="select">--请选择--</option>
                   <option value="0" <c:if test="${ETF.CUST_CRED_TYPE eq '0'}" > selected</c:if> > 身份证</option>
                   <!--option value="1" <c:if test="${ETF.CUST_CRED_TYPE eq '1'}" > selected</c:if> > 护照</option>
                   <option value="2" <c:if test="${ETF.CUST_CRED_TYPE eq '2'}" > selected</c:if> > 军官证</option>
                   <option value="3" <c:if test="${ETF.CUST_CRED_TYPE eq '3'}" > selected</c:if> > 回乡证</option>
                   <option value="4" <c:if test="${ETF.CUST_CRED_TYPE eq '4'}" > selected</c:if> > 户口本</option>
                   <option value="9" <c:if test="${ETF.CUST_CRED_TYPE eq '9'}" > selected</c:if> > 企业营业执照</option>
                   <option value="C" <c:if test="${ETF.CUST_CRED_TYPE eq 'C'}" > selected</c:if> > 台湾居身份证</option>
                   <option value="D" <c:if test="${ETF.CUST_CRED_TYPE eq 'D'}" > selected</c:if> > 外国公民护照</option>
                   <option value="F" <c:if test="${ETF.CUST_CRED_TYPE eq 'F'}" > selected</c:if> > 临时身份证</option>
                   <option value="G" <c:if test="${ETF.CUST_CRED_TYPE eq 'G'}" > selected</c:if> > 警察证</option>
                   <option value="H" <c:if test="${ETF.CUST_CRED_TYPE eq 'H'}" > selected</c:if> > 士兵证</option>
                   <option value="I" <c:if test="${ETF.CUST_CRED_TYPE eq 'I'}" > selected</c:if> > 港澳身份证</option>
                   <option value="J" <c:if test="${ETF.CUST_CRED_TYPE eq 'J'}" > selected</c:if> > 勘察证件</option>
                   <option value="Z" <c:if test="${ETF.CUST_CRED_TYPE eq 'Z'}" > selected</c:if> > 其他</option-->
           </select>
         </td>
         <td>认证状态:</td>
         <td>
           <select name="USR_STATUS" id="USR_STATUS">
             <option value="-1" select="select">--请选择--</option>
             <option value="0" <c:if test="${ETF.USR_STATUS eq '0'}" > selected</c:if>>未认证</option>
             <option value="1" <c:if test="${ETF.USR_STATUS eq '1'}" > selected</c:if>>审核中</option>
             <option value="2" <c:if test="${ETF.USR_STATUS eq '2'}" > selected</c:if>>已通过</option>
             <option value="3" <c:if test="${ETF.USR_STATUS eq '3'}" > selected</c:if>>未通过</option>
           </select>
         </td>
         
       </tr>
    </table>

    <div class="subBar">
      <ul>  
          <li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
      </ul>
    </div>

  </div>
  </form>
</div>

<div class="pageContent">
  <table class="table" width="100%" layoutH="150">
    <thead>
      <tr>
        <th >登录账号</th>
        <th >用户名称</th>
        <th >证件类型</th>
        <th >证件号码</th>
        <th >注册日期</th>
        <th >认证操作员</th> 
        <th >认证日期</th>
        <th >认证状态</th>
        <th >操作</th>
      </tr>
    </thead>
    <tbody>
      <c:choose>
        <c:when test = "${ETF.RSPCOD eq '00021'}">
          <tr>
              <td colspan="7"><font  style="vertical-align:middle;font-size:16px;">无符合条件记录</font></td>
          </tr>
        </c:when>
        <c:otherwise >
           <c:forEach items="${ETF.GRP}" var="GRP">
            <tr target="sid_obj" rel="1"style="width: 20px; overflow: auto;">
              <td>${GRP.CUST_LOGIN}</td>
              <td>${GRP.CUST_NAME}</td>
              <td>
                <c:if test="${GRP.CUST_CRED_TYPE=='0'}">居民身份证</c:if>
                <c:if test="${GRP.CUST_CRED_TYPE=='1'}">护照</c:if>
                <c:if test="${GRP.CUST_CRED_TYPE=='2'}">军官证</c:if>
                <c:if test="${GRP.CUST_CRED_TYPE=='C'}">台湾居民身份证</c:if>
                <c:if test="${GRP.CUST_CRED_TYPE=='F'}">临时身份证</c:if>
                <c:if test="${GRP.CUST_CRED_TYPE=='G'}">警察证</c:if>
                <c:if test="${GRP.CUST_CRED_TYPE=='I'}">港澳身份证</c:if>
                <c:if test="${GRP.CUST_CRED_TYPE=='Z'}">其他</c:if>
              </td>
              <td>${GRP.CUST_CRED_NO}</td>
              <td>${GRP.CUST_REG_DATE}</td>
              <td>${GRP.ADMIN_ID}</td>
              <td>${GRP.ADMIN_DATE}</td>
              <td>
                  <c:if test="${GRP.USR_STATUS=='0'}">证件到期</c:if>
                  <c:if test="${GRP.USR_STATUS=='1'}">审核中</c:if>
                  <c:if test="${GRP.USR_STATUS=='2'}">已通过</c:if>
                  <c:if test="${GRP.USR_STATUS=='3'}">未通过</c:if>
              </td>
              <td>
                 <c:if test="${ETF.CON_BUT_DEV==0 || (ETF.CON_BUT_DEV==1 && ETF.BUT_LOOK ==1)}"> 
                   <a  href="412214.stp?CUST_ID=${GRP.CUST_ID}" title="详 情" target="navTab"><font color="#15428b">详 情</font></a> 
                   <c:if test="${GRP.USR_STATUS==1   }">
                   | <a  href="412214.stp?CUST_ID=${GRP.CUST_ID}&flag=1" title="审 核" target="navTab"><font color="#15428b">审 核</font></a> 
                   </c:if>
                 </c:if>
              </td>
            </tr>
           </c:forEach>
        </c:otherwise>
      </c:choose>
    </tbody>
  </table> 
  <div class="panelBar">
    <div class="pages"><span>共[${ETF.TOLCNT}]条,当前第
      <c:choose>
             <c:when test="${ETF.TOLCNT==0}"> 0 </c:when>
             <c:when test="${ETF.TOLCNT>0&&ETF.TOLCNT<=19}">1-${ETF.TOLCNT}</c:when><c:otherwise>
               <c:choose><c:when test="${ETF.TOLCNT%19==0&&ETF.PAGENUM>(ETF.TOLCNT/19)}">
               ${((fn:substring((ETF.TOLCNT/19),0,fn:indexOf((ETF.TOLCNT/19),".")))-1)*19+1}-</c:when>
               <c:when test="${ETF.TOLCNT%19!=0&&ETF.PAGENUM>(ETF.TOLCNT/19+1)}">${ETF.TOLCNT-ETF.TOLCNT%19+1}-</c:when>
               <c:otherwise>${(ETF.PAGENUM-1)*19+1}-</c:otherwise>
               </c:choose>             
               <c:choose><c:when test="${ETF.PAGENUM*19>=ETF.TOLCNT}">${ETF.TOLCNT}</c:when>            
               <c:otherwise>${ETF.PAGENUM*19}</c:otherwise></c:choose></c:otherwise>
         </c:choose>
      条</span>
    </div>
    <div class="pagination" targetType="navTab" totalCount="${ETF.TOLCNT}" numPerPage="19" pageNumShown="10" currentPage="${ETF.PAGENUM}"></div>
  </div>
</div>
